/*
 * @Author: 姚沈阳 11500793+yao-shenyang@user.noreply.gitee.com
 * @Date: 2023-11-02 20:22:53
 * @LastEditors: 姚沈阳 11500793+yao-shenyang@user.noreply.gitee.com
 * @LastEditTime: 2023-11-03 15:54:53
 * @FilePath: \票务管理\app\ticketing-management\server\app\service\station.js
 * @Description: 
 * qq1908552310
 */
const Service = require('egg').Service;

class StationService extends Service {
    async index() {
        return this.app.mysql.select('station_status')
    }
    async create({ datas }) {
        let $params = {
            name: datas,
            status: "1"
        }
        return await this.app.mysql.insert('station_status', $params)
    }

    async destroy({ id }) {
        return await this.app.mysql.delete('station_status', { id: id })
    }
}

module.exports = StationService;